<?php
/**
 * Created by 绵阳人维网络科技有限公司.
 * User: 罗东华
 * Date: 2016/3/10
 * Time: 15:49
 */
namespace Common\Controller;

class LdhC extends \Think\Controller
{
    protected function _initialize(){


    }

    /*状态返回消息*/
    protected function ThisReturn($status = true, $success = '', $error = '')
    {
        if (!$success) {
            $success = '操作成功！';
        }
        if (!$error) {
            $error = '操作失败,请重试！';
        }
        if ($status == true) {

            $this->success($success);
            exit;
        } else {

            $this->error($error);
        }

    }





}